!function(){var e={2728:function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return null}}function i(e){try{return encodeURIComponent(e)}catch(t){return null}}t.stringify=function(e,t){t=t||"";var r,o,a=[];for(o in"string"!==typeof t&&(t="?"),e)if(n.call(e,o)){if((r=e[o])||null!==r&&undefined!==r&&!isNaN(r)||(r=""),o=i(o),r=i(r),null===o||null===r)continue;a.push(o+"="+r)}return a.length?t+a.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,i={};t=n.exec(e);){var o=r(t[1]),a=r(t[2]);null===o||null===a||o in i||(i[o]=a)}return i}},5194:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!==typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=200&&e<300}};var C=function e(){var t=v({},k,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});function n(e,r,i,o,a){var s,c=e,l=v({},t,r),d=!1,f=new XMLHttpRequest,h={requestStart:Date.now()};if("string"!==typeof e&&(c=e.url,l=v({},t,e)),l.baseUrl&&(c="".concat(l.baseUrl).concat(c)),l.params){var y=u(c.split("?"),1)[0],p=b.stringify(l.params,"?");c="".concat(y).concat(p)}var g,m=null!==(s=l.method)&&void 0!==s?s:i;m=null===m||void 0===m?void 0:m.toUpperCase();var w,E=null!==(g=l.data)&&void 0!==g?g:o;function _(){d=!0,f.abort()}if("object"===typeof E&&(E=JSON.stringify(E),l.headers&&!l.headers["Content-Type"]&&(l.headers["Content-Type"]="application/json; charset=utf-8")),l.withCredentials&&(f.withCredentials=!0),l.responseType&&(f.responseType=l.responseType),l.timeout&&(w=window.setTimeout(_,l.timeout)),l.signal){if(l.signal.aborted)return Promise.reject(new T("Request was aborted",0,l));l.signal.addEventListener("abort",_),f.onloadend=function(){var e;null===(e=l.signal)||void 0===e||e.removeEventListener("abort",_)}}return new Promise((function(e,t){for(var n in f.open(m,c,!0),l.headers)f.setRequestHeader(n,l.headers[n]);f.onreadystatechange=function(){if(d){var t,n=(null===(t=l.signal)||void 0===t?void 0:t.aborted)?"Request was aborted":"Request was aborted due to exceeded timeout";return e(new T(n,f.status,l))}if(2===f.readyState&&(h.lookupTime=Date.now()-h.requestStart),4===f.readyState){var r,i;w&&clearTimeout(w),h.requestEnd=Date.now(),h.totalTime=h.requestEnd-h.requestStart,h.responseLength=null!==(i=null===(r=f.response)||void 0===r?void 0:r.length)&&void 0!==i?i:0;var o=f.response;"text"===l.responseType&&(o=function(e){try{return JSON.parse(e)}catch(t){return e}}(f.responseText));var a=I()(f.getAllResponseHeaders()),s={options:l,data:o,headers:a,timing:h,status:f.status,statusText:f.statusText,xhr:f};l.isStatusValid(f.status)||e(new T("Request failed with status code ".concat(f.status),f.status,l,s)),e(s)}},f.onerror=t,f.send(E)})).then((function(t){if(t instanceof Error){var s=null!==a&&void 0!==a?a:l.retries;if(l.shouldRetry(t)&&"number"===typeof s&&s>0){var c=Promise.resolve();if(l.retryDelay){var u=l.retries-s,d=l.retryDelay;"function"===typeof d&&(d=d(u)),c=S(d)}return c.then((function(){return n(e,r,i,o,s-1)}))}return Promise.reject(t)}return Promise.resolve(t)}))}var r=n;return r.createInstance=e,P.forEach((function(e){r[e]=function(t,r){return n(t,r,e)}})),A.forEach((function(e){r[e]=function(t,r,i){return n(t,i,e,r)}})),r}();function R(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(G){return!1}}function L(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(){for(var e=arguments.length,t=new Array(e),n=0;n{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};var D=n(5194);function x(e){for(var t=1;t0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]>>16,e=Math.imul(e,2246822507),e^=e>>>13,e=Math.imul(e,3266489909),(e^=e>>>16)>>>0}var z=new Uint32Array([597399067,2869860233,951274213,2716044179]);function Z(e,t){return e<>>32-t}function J(e,t){var n;if(void 0===t&&(t=0),t=t?0|t:0,"string"==typeof e&&(n=e,e=(new TextEncoder).encode(n).buffer),!(e instanceof ArrayBuffer))throw new TypeError("Expected key to be ArrayBuffer or string");var r=new Uint32Array([t,t,t,t]);!function(e,t){for(var n=e.byteLength/16|0,r=new Uint32Array(e,0,4*n),i=0;i0&&(i[e]=u)}},a=0,s=Object.entries(e);at[i]&&(i=parseInt(o,10));return i}function ie(){if("undefined"==typeof navigator)return{name:"unknown",version:"unknown"};for(var e=navigator.userAgent,t={Edg:"Edge",OPR:"Opera"},n=0,r=[/(?Edge|Edg)\/(?\d+(?:\.\d+)?)/,/(?(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?\d+(?:\.\d+)?)/,/(?(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?\d+(?:\.\d+)?)/,/(?Safari)\/(?\d+(?:\.\d+)?)/,/(?MSIE|Trident|IEMobile).+?(?\d+(?:\.\d+)?)/,/(?[A-Za-z]+)\/(?\d+(?:\.\d+)?)/,/(?SamsungBrowser)\/(?\d+(?:\.\d+)?)/];n0;t--)if(e(t))return t}catch(e){return 0}return 0}"Firefox"!=ie().name&&H("fonts",(function(){var e=this;return new Promise((function(t,n){try{!function(e){var t;G(this,void 0,void 0,(function(){var n,r,i;return B(this,(function(o){switch(o.label){case 0:return document.body?[3,2]:[4,(50,new Promise((function(e){return setTimeout(e,50,undefined)})))];case 1:return o.sent(),[3,0];case 2:if((n=document.createElement("iframe")).setAttribute("frameBorder","0"),(r=n.style).setProperty("position","fixed"),r.setProperty("display","block","important"),r.setProperty("visibility","visible"),r.setProperty("border","0"),r.setProperty("opacity","0"),n.src="about:blank",document.body.appendChild(n),!(i=n.contentDocument||(null===(t=n.contentWindow)||void 0===t?void 0:t.document)))throw new Error("Iframe document is not accessible");return e({iframe:i}),setTimeout((function(){document.body.removeChild(n)}),0),[2]}}))}))}((function(n){var r=n.iframe;return G(e,void 0,void 0,(function(){var e,n,i,o;return B(this,(function(a){return e=r.createElement("canvas"),n=e.getContext("2d"),i=ce.map((function(e){return ue(n,e)})),o={},se.forEach((function(e){var t=ue(n,e);i.includes(t)||(o[e]=t)})),t(o),[2]}))}))}))}catch(G){n({error:"unsupported"})}}))})),H("hardware",(function(){return new Promise((function(e,t){var n=void 0!==navigator.deviceMemory?navigator.deviceMemory:0,r=window.performance&&window.performance.memory?window.performance.memory:0;e({videocard:le(),architecture:de(),deviceMemory:n.toString()||"undefined",jsHeapSizeLimit:r.jsHeapSizeLimit||0})}))})),H("locales",(function(){return new Promise((function(e){e({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})}))})),H("permissions",(function(){return G(this,void 0,void 0,(function(){var e;return B(this,(function(t){return ae=(null==F?void 0:F.permissions_to_check)||["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"],e=Array.from({length:(null==F?void 0:F.retries)||3},(function(){return function(){return G(this,void 0,void 0,(function(){var e,t,n,r,i;return B(this,(function(o){switch(o.label){case 0:e={},t=0,n=ae,o.label=1;case 1:if(!(tr&&(n=e,r=t[e])})),n}(e.map((function(e){return t in e?e[t]:void 0})).filter((function(e){return void 0!==e})));r&&(n[t]=r)})),n}(e,ae)}))]}))}))})),H("plugins",(function(){var e=[];if(navigator.plugins)for(var t=0;t0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:fe()})}))})),H("system",(function(){return new Promise((function(e){var t=ie();e({platform:window.navigator.platform,cookieEnabled:window.navigator.cookieEnabled,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,hardwareConcurrency:navigator.hardwareConcurrency,browser:{name:t.name,version:t.version},applePayVersion:he()})}))}));var ve,ye="SamsungBrowser"!==ie().name?1:3,pe=null;H("webgl",(function(){return G(this,void 0,void 0,(function(){var e;return B(this,(function(t){"undefined"!=typeof document&&((ve=document.createElement("canvas")).width=200,ve.height=100,pe=ve.getContext("webgl"));try{if(!pe)throw new Error("WebGL not supported");return e=Array.from({length:ye},(function(){return function(){try{if(!pe)throw new Error("WebGL not supported");var t=pe.createShader(pe.VERTEX_SHADER),n=pe.createShader(pe.FRAGMENT_SHADER);if(!t||!n)throw new Error("Failed to create shaders");if(pe.shaderSource(t,"\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n "),pe.shaderSource(n,"\n precision mediump float;\n void main() {\n gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color\n }\n "),pe.compileShader(t),!pe.getShaderParameter(t,pe.COMPILE_STATUS))throw new Error("Vertex shader compilation failed: "+pe.getShaderInfoLog(t));if(pe.compileShader(n),!pe.getShaderParameter(n,pe.COMPILE_STATUS))throw new Error("Fragment shader compilation failed: "+pe.getShaderInfoLog(n));var r=pe.createProgram();if(!r)throw new Error("Failed to create shader program");if(pe.attachShader(r,t),pe.attachShader(r,n),pe.linkProgram(r),!pe.getProgramParameter(r,pe.LINK_STATUS))throw new Error("Shader program linking failed: "+pe.getProgramInfoLog(r));pe.useProgram(r);for(var i=137,o=new Float32Array(548),a=2*Math.PI/i,s=0;s>>32-t}var _e=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=0,r=3&e.length,i=e.length-r,o=0;o>>16,e=Math.imul(e,Ee),e^=e>>>13,e=Math.imul(e,be),e^e>>>16}(t^=e.length))>>>0).toString(36)};function Ie(e){if(e)return _e(JSON.stringify(e))}function Pe(){return(Pe=t((function(){var e,t,n,r,i,o,a,s,c,u,d,f,h,v,y,p,g,m,w,E,b,S;return l(this,(function(l){switch(l.label){case 0:return[4,Q()];case 1:return S=l.sent(),[2,V(N({c:Ie(null===(e=S.canvas)||void 0===e?void 0:e.commonImage),a:{s:null===(t=S.audio)||void 0===t?void 0:t.sampleHash,o:null===(n=S.audio)||void 0===n?void 0:n.oscillator,m:null===(r=S.audio)||void 0===r?void 0:r.maxChannels,c:null===(i=S.audio)||void 0===i?void 0:i.channelCountMode},h:{v:Ie(null===(o=S.hardware)||void 0===o?void 0:o.videocard),a:null===(a=S.hardware)||void 0===a?void 0:a.architecture,d:null===(s=S.hardware)||void 0===s?void 0:s.deviceMemory,h:null===(c=S.hardware)||void 0===c?void 0:c.jsHeapSizeLimit},f:Ie(S.fonts),l:{l:null===(u=S.locales)||void 0===u?void 0:u.languages,t:null===(d=S.locales)||void 0===d?void 0:d.timezone},p:Ie(S.permissions),pl:Ie(S.plugins),s:{i:!!(null===(f=S.screen)||void 0===f?void 0:f.is_touchscreen),m:null===(h=S.screen)||void 0===h?void 0:h.maxTouchPoints,c:null===(v=S.screen)||void 0===v?void 0:v.colorDepth,mm:Ie(null===(y=S.screen)||void 0===y?void 0:y.mediaMatches)},sy:{p:null===(p=S.system)||void 0===p?void 0:p.platform,c:!!(null===(g=S.system)||void 0===g?void 0:g.cookieEnabled),ps:null===(m=S.system)||void 0===m?void 0:m.productSub,pr:null===(w=S.system)||void 0===w?void 0:w.product,a:null===(E=S.system)||void 0===E?void 0:E.applePayVersion},w:Ie(null===(b=S.webgl)||void 0===b?void 0:b.commonImageHash),m:Ie(S.math)}))]}}))}))).apply(this,arguments)}!function(e,t){if(!["include","exclude","permissions_to_check","retries","timeout","logging"].includes(e))throw new Error("Unknown option "+e);if(["include","exclude","permissions_to_check"].includes(e)&&(!Array.isArray(t)||!t.every((function(e){return"string"==typeof e}))))throw new Error("The value of the include, exclude and permissions_to_check must be an array of strings");if(["retries","timeout"].includes(e)&&"number"!=typeof t)throw new Error("The value of retries must be a number");F[e]=t}("logging",!1);var Ae,Te,ke,Ce,Re=function(){return Pe.apply(this,arguments)},Le=function(e){return Array.isArray(e)?e:[e]};!function(e){e[e.Auto=-1]="Auto"}(Ae||(Ae={})),function(e){e.LOGO="Logo",e.POWERED_BY="Powered By",e.ERROR_MESSAGE="Player Error Message"}(Te||(Te={})),function(e){e.FIRST="false",e.RETURNING="true"}(ke||(ke={})),function(e){e.MANUAL="manual",e.AUTO="auto"}(Ce||(Ce={}));var Oe,Ve,Ne,Me,Ue,De,xe,je,Ge={development:{BASE_URL:"https://fast.vidalytics.com",TRACKING_BASE_URL:"https://stats.dev.vidalytics.com",API_URL:"https://api.dev.vidalytics.com",ANALYTICS_LICENSE_KEY:"c4834298-0629-4334-9a7d-201b35bc92ab"},production:{BASE_URL:"https://fast.vidalytics.com",TRACKING_BASE_URL:"https://stats.vidalytics.com",API_URL:"https://api.vidalytics.com",ANALYTICS_LICENSE_KEY:"d4c2598d-2c00-4d64-89ef-2dc2239df17d"}},Be="/scribe",Fe=function(e){h(n,e);var t=E(n);function n(e){var i;return r(this,n),(i=t.call(this,e)).name="EventTimeoutError",i}return n}(m(Error));function Ke(e,t,n){return qe.apply(this,arguments)}function qe(){return(qe=t((function(e,t,n){return l(this,(function(r){return e&&t?[2,new Promise((function(r,i){var o;function a(){o&&clearTimeout(o),r()}n&&(o=setTimeout((function(){e.off(t,a),i(new Fe("Event `".concat(t,"` timed out")))}),n)),e.once(t,a)}))]:[2]}))}))).apply(this,arguments)}!function(e){e.CONVERSION="Vidalytics.EVENT_CONVERSION",e.CTA_CLICKED="Vidalytics.Player.EVENT_CTA_CLICKED",e.CTA_DISPLAYED="Vidalytics.Player.EVENT_CTA_DISPLAYED",e.CTA_HIDDEN="Vidalytics.Player.EVENT_CTA_HIDDEN",e.LINK_CLICKED="Vidalytics.Player.EVENT_LINK_CLICKED",e.FUNNEL_CHOICE_SELECTED="Vidalytics.Player.EVENT_FUNNEL_CHOICE_SELECTED",e.FUNNEL_INTERACTION_SHOW="Vidalytics.Player.EVENT_FUNNEL_INTERACTION_SHOW",e.ERROR="Vidalytics.Player.EVENT_ERROR",e.INITIALIZED="Vidalytics.Player.EVENT_INITIALIZED",e.PAUSE="Vidalytics.Player.EVENT_PAUSE",e.PLAY="Vidalytics.Player.EVENT_PLAY",e.PLAYER_CREATED="Vidalytics.Player.EVENT_PLAYER_CREATED",e.PLAYING="Vidalytics.Player.EVENT_PLAYING",e.PLAYED="Vidalytics.Player.EVENT_PLAYED",e.PLAY_GATE="Vidalytics.Player.EVENT_PLAY_GATE",e.PLAY_GATE_SHOW="Vidalytics.Player.EVENT_PLAY_GATE_SHOW",e.PLAY_GATE_SKIPPED="Vidalytics.Player.EVENT_PLAY_GATE_SKIPPED",e.PRODUCT_ADDED_TO_CART="Vidalytics.Player.EVENT_PRODUCT_ADDED_TO_CART",e.PRODUCT_CART_CLICKED="Vidalytics.Player.EVENT_PRODUCT_CART_CLICKED",e.RESTART="Vidalytics.Player.EVENT_RESTART",e.RESUME="Vidalytics.Player.EVENT_RESUME",e.RESIZED="Vidalytics.Player.EVENT_RESIZED",e.STOP="Vidalytics.Player.EVENT_STOP",e.SEEK="Vidalytics.Player.EVENT_SEEK",e.SEEK_TO="Vidalytics.Player.EVENT_SEEK_TO",e.TRIGGER="Vidalytics.Player.EVENT_TRIGGER",e.TIME_CHANGED="Vidalytics.Player.EVENT_TIME_CHANGED",e.UNMUTE="Vidalytics.Player.UNMUTE",e.VIDEO_FULLSCREEN="Vidalytics.Player.EVENT_VIDEO_FULLSCREEN",e.VIDEO_FULLSCREEN_CLOSE="Vidalytics.Player.EVENT_VIDEO_FULLSCREEN_CLOSE",e.RESOLUTION_CHANGED="Vidalytics.Player.EVENT_RESOLUTION_CHANGED",e.PLAYBACK_STARTED="Vidalytics.Player.EVENT_PLAYBACK_STARTED",e.BUFFERING="Vidalytics.Player.EVENT_BUFFERING",e.FRAGMENT_LOADED="Vidalytics.Player.EVENT_FRAG_LOADED",e.USER_ACTING="Vidalytics.Player.EVENT_USER_ACTING",e.GLOBAL_INIT="Vidalytics.Global.EVENT_INIT",e.GLOBAL_SEARCH_PARAMS="Vidalytics.Global.EVENT_SEARCH_PARAMS"}(De||(De={})),null!==(xe=(Oe=window).Vidalytics)&&void 0!==xe||(Oe.Vidalytics={}),null!==(je=(Ve=window.Vidalytics).EventType)&&void 0!==je||(Ve.EventType=De);var He,Ye,We,ze,Ze="vidalytics_disable_cookie";function Je(e){var t,n,r,i,o,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];null!==(o=(i=window)._vidalytics)&&void 0!==o||(i._vidalytics={}),window._vidalytics.disableCookie=!e,a&&(e?localStorage.removeItem(Ze):localStorage.setItem(Ze,String(e))),null===(r=window._vidalytics.tracking)||void 0===r||null===(n=r.eventManager)||void 0===n||null===(t=n.emit)||void 0===t||t.call(n,"cookie:preference",e)}null!==(He=(Ne=window)._vidalytics)&&void 0!==He||(Ne._vidalytics={}),null!==(Ye=(Me=window._vidalytics).tracking)&&void 0!==Ye||(Me.tracking={}),null!==(We=(Ue=window._vidalytics.tracking).eventManager)&&void 0!==We||(Ue.eventManager=new D),window._vidalytics.tracking.setCookiePreference=Je,function(e){e[e.PLAYER=3]="PLAYER",e[e.CONVERSION=2]="CONVERSION",e[e.GLOBAL=1]="GLOBAL",e[e.NONE=0]="NONE"}(ze||(ze={}));var $e={allowedEvents:[],autoSessionInit:!0,autoUserInit:!0,batchInterval:3e3,batchSize:10,cookieDomain:".".concat(window.location.hostname),cookieExpires:30,deferUserInit:!1,maxParallelRequests:3,priorityLevel:0,retriesLimit:3,searchParamsKey:"_vd",sessionIdKey:"vidalytics_sid",sessionIdLength:10,userIdKey:"vidalytics_uid",disableCookie:!1,immediateEvents:["Vidalytics.EVENT_CONVERSION","Vidalytics.Player.EVENT_CTA_CLICKED","Vidalytics.Player.EVENT_ERROR","Vidalytics.Player.EVENT_FUNNEL_CHOICE_SELECTED","Vidalytics.Player.EVENT_INITIALIZED","Vidalytics.Player.EVENT_LINK_CLICKED","Vidalytics.Player.EVENT_PAUSE","Vidalytics.Player.EVENT_PLAY_GATE","Vidalytics.Player.EVENT_PLAY","Vidalytics.Player.EVENT_PLAYED","Vidalytics.Player.EVENT_RESTART","Vidalytics.Player.EVENT_RESUME","Vidalytics.Player.EVENT_TRIGGER","Vidalytics.Player.EVENT_VIDEO_FULLSCREEN_CLOSE","Vidalytics.Player.EVENT_VIDEO_FULLSCREEN","Vidalytics.Global.EVENT_INIT","Vidalytics.Global.EVENT_SEARCH_PARAMS"]},Xe=function(){function e(n){var i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$e,s=arguments.length>2?arguments[2]:void 0,c=arguments.length>3?arguments[3]:void 0;r(this,e),a(this,"id",void 0),a(this,"name",void 0),a(this,"config",void 0),a(this,"options",void 0),a(this,"allowedEvents",void 0),a(this,"messages",[]),a(this,"userId",void 0),a(this,"sessionId",void 0),a(this,"isDisconnected",!1),a(this,"isInitialized",!1),a(this,"isFlushing",!1),a(this,"isReturningViewerKey",void 0),a(this,"activeRequestCount",0),a(this,"eventEmitter",void 0),a(this,"request",void 0),a(this,"eventsCount",{}),a(this,"processScheduler",void 0),a(this,"isLocalStorageEnabled",R("localStorage")),a(this,"isSessionStorageEnabled",R("sessionStorage")),a(this,"detachUnloadListener",void 0);var u=this;a(this,"flushMessages",t((function(){return l(this,(function(e){switch(e.label){case 0:return u.isFlushing?[2]:u.hasMessages?(u.isFlushing=!0,[4,u.proccessBatch({isFlush:!0})]):[2];case 1:return e.sent(),u.isFlushing=!1,[2]}}))}))),a(this,"handleVisibilityChange",(function(){"hidden"===document.visibilityState&&i.flushMessages()})),a(this,"handleCookiePreference",(function(e){if(i.userId)if(i.options.disableCookie=!e,e)i.storeUserId(i.userId);else{var t=i.options,n=t.userIdKey,r=t.cookieExpires,o=t.cookieDomain;j.remove(n,{expires:r,domain:o})}})),this.config=n,this.options=v({},$e,o);var d=this.options,f=d.name,h=d.sessionIdLength,y=d.allowedEvents,p=d.priorityLevel,g=d.autoUserInit,m=d.autoSessionInit,w=d.retriesLimit,E={baseUrl:this.config.url,retries:w};this.isReturningViewerKey=this.formatReturningViewerKey(c,s),this.id=U(h),this.name=f,this.allowedEvents=y,this.eventEmitter=new D,this.request=C.createInstance(E),this.registerInstance(),this.setPriorityLevel(p,this.id),this.detachUnloadListener=this.attachUnloadListener(),this.eventsCount={},this.initCookiePreferences(),m&&this.initSession(),g&&setTimeout((function(){return i.initUser()}),0)}return o(e,[{key:"formatReturningViewerKey",value:function(e,t){var n=t||e;if(n)return"vidalytics_".concat(t?"funnel":"video","_").concat(n,"_is_returning")}},{key:"on",value:function(e,t){this.eventEmitter.on(e,t)}},{key:"off",value:function(e,t){this.eventEmitter.off(e,t)}},{key:"once",value:function(e,t){this.eventEmitter.once(e,t)}},{key:"trigger",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{}).isFlush,r=void 0!==n&&n,i=this;return t((function(){var t,n,o,s,c,u,d,f,h,y;return l(this,(function(l){switch(l.label){case 0:if(!i.isInitialized)return[2];if(i.isProcessing&&!r)return[2];i.stopScheduler(),i.activeRequestCount+=1,t=i.options.batchSize,n=i.allowedMessages.slice(0,t),i.deleteMessages(n),o=!0,s=!1,c=void 0;try{for(u=n[Symbol.iterator]();!(o=(d=u.next()).done);o=!0)f=d.value,i.trigger("message:dequeue",f)}catch(p){s=!0,c=p}finally{try{o||null==u.return||u.return()}finally{if(s)throw c}}l.label=1;case 1:return l.trys.push([1,3,,4]),h=n.map((function(t){return M(v({},t),a({userId:i.userId},e.MESSAGE_ID_KEY,void 0))})),[4,i.sendMessages(h)];case 2:return l.sent(),[3,4];case 3:return y=l.sent(),console.error(y),i.restoreMessages(n),i.handleDisconnect(),[3,4];case 4:return i.activeRequestCount-=1,i.processMessages(),[2]}}))}))()}},{key:"processMessages",value:function(){var e=this;return t((function(){var t,n,r;return l(this,(function(i){switch(i.label){case 0:return t=e.isInitialized&&e.userId,n=e.isProcessing||e.isDisconnected,r=!e.hasMessages,!t||n||r?[2]:e.isBatchAllowed||e.isBatchHighPriority?[4,e.proccessBatch()]:[2,e.startScheduler()];case 1:return i.sent(),[2]}}))}))()}},{key:"deleteMessages",value:function(t){var n=new Set(Le(t).map((function(t){return t[e.MESSAGE_ID_KEY]})));this.messages=this.messages.filter((function(t){return!n.has(t[e.MESSAGE_ID_KEY])}))}},{key:"restoreMessages",value:function(e){this.messages=L(Le(e)).concat(L(this.messages))}},{key:"sendMessages",value:function(e){var n=this;return t((function(){var t,r,i,o,a,s,c,u,d,f;return l(this,(function(l){switch(l.label){case 0:return r={"Content-Type":"text/plain; charset=utf-8"},i=Array.isArray(e)?{events:e}:e,1===(null===(t=i.events)||void 0===t?void 0:t.length)&&(i=i.events[0]),n.isFlushing&&n.isBeaconSupported?(o=n.config.url,navigator.sendBeacon("".concat(o).concat(Be),JSON.stringify(i)),[3,3]):[3,1];case 1:return[4,n.request.post(Be,i,{headers:r})];case 2:l.sent(),l.label=3;case 3:a=!0,s=!1,c=void 0;try{for(u=Le(e)[Symbol.iterator]();!(a=(d=u.next()).done);a=!0)f=d.value,n.trigger("message:dispatch",f)}catch(h){s=!0,c=h}finally{try{a||null==u.return||u.return()}finally{if(s)throw c}}return[2]}}))}))()}},{key:"attachUnloadListener",value:function(){var e=this;return window.addEventListener("visibilitychange",this.handleVisibilityChange),function(){window.removeEventListener("visibilitychange",e.handleVisibilityChange)}}},{key:"startScheduler",value:function(){var e=this;if(!this.processScheduler){var t=this.options.batchInterval;this.isFlushing&&(t=0),this.processScheduler=setTimeout((function(){e.stopScheduler(),e.proccessBatch()}),t)}}},{key:"stopScheduler",value:function(){this.processScheduler&&(clearTimeout(this.processScheduler),this.processScheduler=void 0)}},{key:"handleReconnect",value:function(){this.isDisconnected=!1,this.processMessages(),this.trigger("connect")}},{key:"init",value:function(){this.isInitialized=!0,this.processMessages(),this.trigger("init")}},{key:"handleDisconnect",value:function(){this.isDisconnected=!0,this.checkConnection(),this.trigger("disconnect")}},{key:"checkConnection",value:function(){var e=this;return t((function(){var t;return l(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.request.get("/ping")];case 1:return n.sent(),e.isInitialized?(e.handleReconnect(),[3,3]):[2,e.initUser()];case 2:return t=n.sent(),console.error(t),[3,3];case 3:return[2]}}))}))()}},{key:"initSession",value:function(){var e=this.options,t=e.sessionIdKey,n=e.sessionIdLength,r=this.getSessionId();if(r)return this.sessionId=r,this.storeSessionId(r),void this.trigger("init:session",r);var i=U(n);this.sessionId=i,sessionStorage.setItem(t,i),this.trigger("init:session",i)}},{key:"destroy",value:function(){var e,t,n;null===(n=window._vidalytics)||void 0===n||(null===(t=n.tracking)||void 0===t||(null===(e=t.instances)||void 0===e||delete e[this.id])),this.eventEmitter.removeAllListeners(),this.trigger("destroy")}},{key:"registerInstance",value:function(){var e,t,n,r,i,o,a,s;null!==(o=(n=window)._vidalytics)&&void 0!==o||(n._vidalytics={}),null!==(a=(r=window._vidalytics).tracking)&&void 0!==a||(r.tracking={}),null!==(s=(i=window._vidalytics.tracking).instances)&&void 0!==s||(i.instances={}),window._vidalytics.tracking.instances[this.id]=this;var c=this.options.priorityLevel,u=null===(t=window._vidalytics)||void 0===t||null===(e=t.tracking)||void 0===e?void 0:e.priorityLevel;this.isPriorityHigher(u,c)||(window._vidalytics.tracking.activeInstanceId=this.id,this.trigger("init:instance"))}},{key:"isPriorityHigher",value:function(e,t){return e&&t&&e>t}},{key:"setPriorityLevel",value:function(e,t){var n,r,i,o,a,s,c=null===(r=window._vidalytics)||void 0===r||null===(n=r.tracking)||void 0===n?void 0:n.priorityLevel;this.isPriorityHigher(c,e)||(null!==(a=(i=window)._vidalytics)&&void 0!==a||(i._vidalytics={}),null!==(s=(o=window._vidalytics).tracking)&&void 0!==s||(o.tracking={}),window._vidalytics.tracking.priorityLevel=e,this.trigger("init:priority",e))}},{key:"initCookiePreferences",value:function(){var e,t,n,r=this.options.disableCookie,i=!!(null===(e=window._vidalytics)||void 0===e?void 0:e.disableCookie);r&&!i&&Je(!1,!1);var o=null===(n=window._vidalytics)||void 0===n||null===(t=n.tracking)||void 0===t?void 0:t.eventManager;o&&o.on("cookie:preference",this.handleCookiePreference)}},{key:"fetchUserData",value:function(e){var n=this;return t((function(){var t,r,i,o;return l(this,(function(a){switch(a.label){case 0:return t=n.config.customerId,[4,Re()];case 1:return r=a.sent(),i={cid:t},e&&(i.uid=e),o={fp:r},[4,n.request.post("/awesome-log",o,{params:i})];case 2:return[2,a.sent().data]}}))}))()}},{key:"initUserData",value:function(){var e=this;return t((function(){var t,n,r,i,o,a,s,c,u;return l(this,(function(l){switch(l.label){case 0:if(null===(n=window._vidalytics)||void 0===n||null===(t=n.tracking)||void 0===t?void 0:t.hasUserDataInit)return[2];if(!(null===(i=window._vidalytics)||void 0===i||null===(r=i.tracking)||void 0===r?void 0:r.isUserDataInitAllowed))return[2];if(!e.isActiveInstance)return[2];null!==(s=(o=window)._vidalytics)&&void 0!==s||(o._vidalytics={}),null!==(c=(a=window._vidalytics).tracking)&&void 0!==c||(a.tracking={}),window._vidalytics.tracking.hasUserDataInit=!0,l.label=1;case 1:return l.trys.push([1,3,,4]),[4,e.fetchUserData(e.userId)];case 2:return u=l.sent(),e.trigger("init:userdata",u),[3,4];case 3:return l.sent(),window._vidalytics.tracking.hasUserDataInit=!1,[3,4];case 4:return[2]}}))}))()}},{key:"fetchUserId",value:function(){var e=this;return t((function(){var t,n,r,i,o,a,s,c,u;return l(this,(function(l){switch(l.label){case 0:return r=e.config.customerId,i={cid:r},[4,e.request.get("/awesome-log",{params:i})];case 1:return o=l.sent(),(a=o.headers.etag)?(s=e.parseUserIdFromEntityTag(a),null!==(c=(t=window)._vidalytics)&&void 0!==c||(t._vidalytics={}),null!==(u=(n=window._vidalytics).tracking)&&void 0!==u||(n.tracking={}),window._vidalytics.tracking.isUserDataInitAllowed=!0,[2,s]):[2]}}))}))()}},{key:"initUser",value:function(){var e=this;return t((function(){var t,n,r,i,o,a,s,c,u,d,f,h,v,y,p,g,m,w,E,b,S,_;return l(this,(function(l){switch(l.label){case 0:if(e.userId)return[2];if(t=e.getUserId())return e.userId=t,e.storeUserId(t),e.isReturningViewerKey&&!localStorage.getItem(e.isReturningViewerKey)&&localStorage.setItem(e.isReturningViewerKey,ke.FIRST),e.init(),e.trigger("init:user",e.userId),[2];l.label=1;case 1:return l.trys.push([1,5,,6]),c=e.options,u=c.deferUserInit,d=c.deferUserInitTimeout,f=null===(r=window._vidalytics)||void 0===r||null===(n=r.tracking)||void 0===n?void 0:n.hasUserInit,h=null===(o=window._vidalytics)||void 0===o||null===(i=o.tracking)||void 0===i?void 0:i.hasUserInitError,f&&!h||!e.isActiveInstance||u?[4,Ke(null===(y=window._vidalytics)||void 0===y||null===(v=y.tracking)||void 0===v?void 0:v.eventManager,"init:user",u?d:void 0)]:[3,3];case 2:return l.sent(),e.initUser(),[2];case 3:return null!==(p=(a=window)._vidalytics)&&void 0!==p||(a._vidalytics={}),null!==(g=(s=window._vidalytics).tracking)&&void 0!==g||(s.tracking={}),window._vidalytics.tracking.hasUserInit=!0,window._vidalytics.tracking.hasUserInitError=!1,[4,e.fetchUserId()];case 4:return(m=l.sent())&&(e.userId=m,e.storeUserId(m),e.isReturningViewerKey&&e.isLocalStorageEnabled&&localStorage.setItem(e.isReturningViewerKey,ke.FIRST),e.init(),e.trigger("init:user",e.userId)),[3,6];case 5:if(function(e){return e instanceof Fe}(w=l.sent()))throw w;return null!==(S=(E=window)._vidalytics)&&void 0!==S||(E._vidalytics={}),null!==(_=(b=window._vidalytics).tracking)&&void 0!==_||(b.tracking={}),window._vidalytics.tracking.hasUserInitError=!0,w&&console.error(w),e.checkConnection(),[3,6];case 6:return[2]}}))}))()}},{key:"parseUserIdFromEntityTag",value:function(e){return u(/^"(.+)\/(.+)"$/.exec(e),3)[2]}},{key:"parseSearchParamUserIds",value:function(e){if(!e)return{};var t=u(e.split(","),2);return{userId:t[0],sessionId:t[1]}}},{key:"getUserId",value:function(){var e,t=this.options,n=t.userIdKey,r=t.searchParamsKey,i=new URLSearchParams(window.location.search).get(r);i&&(e=this.parseSearchParamUserIds(i).userId);return!e&&this.isLocalStorageEnabled&&(e=localStorage.getItem(n)),e||(e=j.get(n)),e}},{key:"storeUserId",value:function(e){var t=this.options,n=t.userIdKey,r=t.cookieExpires,i=t.cookieDomain;this.isLocalStorageEnabled&&localStorage.setItem(n,e),this.isCookieDisabled?j.remove(n,{domain:i}):j.set(n,e,{expires:r,domain:i})}},{key:"getSessionId",value:function(){var e,t=this.options,n=t.sessionIdKey,r=t.searchParamsKey,i=new URLSearchParams(window.location.search).get(r);i&&(e=this.parseSearchParamUserIds(i).sessionId);return!e&&this.isSessionStorageEnabled&&(e=sessionStorage.getItem(n)),e}},{key:"storeSessionId",value:function(e){if(this.isSessionStorageEnabled){var t=this.options.sessionIdKey;sessionStorage.setItem(t,e)}}},{key:"getUnixTimestamp",value:function(){return Math.floor(Date.now()/1e3)}},{key:"setAllowedEvents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.allowedEvents=e,this.processMessages()}},{key:"isActiveInstance",get:function(){var e,t;return(null===(t=window._vidalytics)||void 0===t||null===(e=t.tracking)||void 0===e?void 0:e.activeInstanceId)===this.id}},{key:"isBatchAllowed",get:function(){var e=this.options.batchSize;return!!this.isFlushing||this.allowedMessages.length>=e}},{key:"isBatchHighPriority",get:function(){var e=this.options.immediateEvents,t=new Set(e);return this.allowedMessages.some((function(e){return t.has(e.event)}))}},{key:"allowedMessages",get:function(){var e=this;return 0===this.allowedEvents.length?this.messages:this.messages.filter((function(t){return e.allowedEvents.includes(t.event)}))}},{key:"isProcessing",get:function(){var e=this.options.maxParallelRequests;return!this.isFlushing&&this.activeRequestCount>=e}},{key:"isBeaconSupported",get:function(){return Boolean("undefined"!==typeof navigator&&navigator.sendBeacon)}},{key:"hasMessages",get:function(){return this.allowedMessages.length>0}},{key:"isCookieDisabled",get:function(){var e,t=this.options.disableCookie,n=!!(null===(e=window._vidalytics)||void 0===e?void 0:e.disableCookie),r=localStorage.getItem(Ze);return t||n||r}}]),e}();a(Xe,"MESSAGE_ID_KEY","__message_id__");var Qe=Xe;var et=function(e){if(!e)return"production";try{return/[.-]dev\.?/gi.test(e)?"development":"production"}catch(t){return"production"}};function tt(e){return nt.apply(this,arguments)}function nt(){return nt=t((function(e){var t,n,r=arguments;return l(this,(function(i){switch(i.label){case 0:return t=r.length>1&&void 0!==r[1]?r[1]:{},n=r.length>2&&void 0!==r[2]?r[2]:{},!function(e){var t;return!(null===e||void 0===e?void 0:e.saveData)&&!(null===e||void 0===e||null===(t=e.effectiveType)||void 0===t?void 0:t.includes("2g"))}(navigator.connection)&&!t.ignoreNetwork?[2]:(t.baseUrl&&(e="".concat(t.baseUrl).concat(e)),t.delayMs?[4,S(t.delayMs)]:[3,2]);case 1:i.sent(),i.label=2;case 2:return function(){var e,t,n=document.createElement("link");return!!(null===n||void 0===n||null===(t=n.relList)||void 0===t||null===(e=t.supports)||void 0===e?void 0:e.call(t,"prefetch"))}()||t.forceLink?[2,new Promise((function(t,r){var i=document.createElement("link");for(var o in i.rel="prefetch",i.href=e,i.onload=t,i.onerror=r,n)i[o]=n[o];document.head.appendChild(i)}))]:[2,C.get(e)]}}))})),nt.apply(this,arguments)}var rt={hasPrefetch:!0,prefetchDelay:1e3,prefetchBaseDelay:3e3,userInitTimeout:9e3,hasCrossDomainLinks:!0,hasUrlParamsForward:!0,ignoreInternalLinks:!0,searchParamsKey:"_vd",baseUrl:"https://fast.vidalytics.com",trackingUrl:"https://stats.dev.vidalytics.com",trackingOptions:{name:"global",autoUserInit:!1,priorityLevel:ze.GLOBAL}},it=function(){function e(){var n=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),a(this,"config",void 0),a(this,"customerId",void 0),a(this,"env",void 0),a(this,"tracking",void 0),a(this,"scriptElement",void 0),a(this,"localStorageEnabled",R("localStorage")),a(this,"sessionStorageEnabled",R("sessionStorage"));var o=this;a(this,"handlePrefetch",t((function(){var e,t,n,r,i,a,s,c,u;return l(this,(function(l){switch(l.label){case 0:return e=o.config,t=e.prefetchBaseDelay,n=e.prefetchDelay,tt(r=e.baseUrl,{ignoreNetwork:!0,forceLink:!0},{rel:"preconnect"}),[4,S(t)];case 1:return l.sent(),o.isPrefetchForbidden()?[2]:[4,o.fetchResourceConfig()];case 2:if(i=l.sent(),!(a=null===i||void 0===i?void 0:i.assets)||0===a.length)return[2];s=0,l.label=3;case 3:if(!(s0?"&":"?",m=d.replace(/(#[^?]*|$)/,"".concat(g).concat(p,"$1"));u.setAttribute("href",m)}}}}}})),this.config=O(rt,i),this.scriptElement=this.getScriptElement(),this.customerId=this.getCustomerId(),this.env=this.getEnvironment();var s=this.getTrackingUrl();this.tracking=new Qe({url:s,customerId:this.customerId},this.config.trackingOptions)}return o(e,[{key:"init",value:function(){var e=this;return t((function(){var t,n,r;return l(this,(function(i){return t=e.config,n=t.hasPrefetch,r=t.hasCrossDomainLinks,e.initTracking(),r&&e.initCrossDomainLinks(),n&&e.initPrefetch(),[2]}))}))()}},{key:"initTracking",value:function(){var e=this;return t((function(){var t,n,r,i;return l(this,(function(o){switch(o.label){case 0:return t=e.config,n=t.prefetchBaseDelay,r=t.prefetchDelay,i=t.userInitTimeout,[4,S(n)];case 1:o.sent(),e.isPrefetchForbidden()&&(e.tracking.options.deferUserInit=!0,e.tracking.options.deferUserInitTimeout=i),o.label=2;case 2:return o.trys.push([2,4,,13]),[4,e.tracking.initUser()];case 3:return o.sent(),[3,13];case 4:if(o.sent(),!e.isPrefetchForbidden({isStrict:!0}))return[3,10];o.label=5;case 5:return o.trys.push([5,7,,9]),[4,e.tracking.initUser()];case 6:return o.sent(),[3,9];case 7:return o.sent(),e.tracking.options.deferUserInit=!1,[4,e.tracking.initUser()];case 8:return o.sent(),[3,9];case 9:return[3,12];case 10:return e.tracking.options.deferUserInit=!1,[4,e.tracking.initUser()];case 11:o.sent(),o.label=12;case 12:return[3,13];case 13:return[4,S(r)];case 14:return o.sent(),e.initUrlSearchParams(),[4,S(n)];case 15:return o.sent(),[4,e.tracking.initUserData()];case 16:return o.sent(),[2]}}))}))()}},{key:"initCrossDomainLinks",value:function(){document.addEventListener("mousedown",this.handleDocumentMouseDown)}},{key:"initUrlSearchParams",value:function(){var e=window.location.search,t=Object.fromEntries(new URLSearchParams(e));0===Object.keys(t).length||this.tracking.pushMessage({event:De.GLOBAL_SEARCH_PARAMS,referer:document.referrer,site:window.location.href,data:t})}},{key:"initPrefetch",value:function(){var e=this;return t((function(){return l(this,(function(t){switch(t.label){case 0:return"complete"===document.readyState?[4,e.handlePrefetch()]:[3,2];case 1:return t.sent(),[3,3];case 2:window.addEventListener("load",e.handlePrefetch),t.label=3;case 3:return[2]}}))}))()}},{key:"fetchResourceConfig",value:function(){var e=this;return t((function(){var t,n,r,i,o;return l(this,(function(a){switch(a.label){case 0:if(!e.customerId)return[2];t=e.config,n=t.baseUrl,r=t.prefetchBaseDelay,i={hash:window.location.href},a.label=1;case 1:return a.trys.push([1,3,,4]),[4,C.get("/global/".concat(e.customerId,"/prefetch.json"),{baseUrl:n,params:i,retries:2,retryDelay:r})];case 2:return[2,a.sent().data];case 3:return o=a.sent(),console.error("[Vidalytics Global Script] Failed to load the list of assets for Customer ID `".concat(e.customerId,"`."),o),[3,4];case 4:return[2]}}))}))()}},{key:"parseSearchParamUserIds",value:function(e){if(!e)return{};var t=u(e.split(","),2);return{userId:t[0],sessionId:t[1]}}},{key:"cleanupSearchParams",value:function(){var e=this.config.searchParamsKey,t=new URL(window.location.href);t.searchParams.has(e)&&(t.searchParams.delete(e),window.history.replaceState({},"",t.toString()))}},{key:"getScriptElement",value:function(){var e=document.querySelector('script[id^="vid_glb_"]');return e||(e=document.querySelector("script[data-cid]"))}},{key:"getCustomerId",value:function(){var e;if(this.scriptElement){var t=this.scriptElement.dataset.cid;return t||(t=null===(e=this.scriptElement.id)||void 0===e?void 0:e.replace("vid_glb_",""))}}},{key:"getTrackingUrl",value:function(){return Ge[this.env].TRACKING_BASE_URL}},{key:"getEnvironment",value:function(){var e;return et(null===(e=this.scriptElement)||void 0===e?void 0:e.src)}},{key:"isPrefetchForbidden",value:function(){var e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).isStrict,n=void 0!==t&&t;if(!!window.VidalyticsL)return!0;if(!!window.VidalyticsC)return!0;if(!!(null===(e=window._vidalytics)||void 0===e?void 0:e.embeds)&&Object.keys(window._vidalytics.embeds).length>0)return!0;if(!n&&!!document.querySelector('[id^="vidalytics_embed"]'))return!0;return!!document.querySelector('script[src*="vidalytics"][src*="loader.min.js"]')||(!!document.querySelector('script[src*="vidalytics"][src*="conversion.min.js"]')||!(!document.querySelector('script[data-vidalytics][src^="blob"]')&&!document.querySelector('script[src*="vidalytics"][src*="player.min.js"]')))}},{key:"destroy",value:function(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),window.removeEventListener("load",this.handlePrefetch)}}],[{key:"isInjectedToGlobal",get:function(){var e;return!!(null===(e=window.Vidalytics)||void 0===e?void 0:e.GlobalScript)}},{key:"injectToGlobal",value:function(){window.Vidalytics||(window.Vidalytics={}),window.Vidalytics.GlobalScript=e}}]),e}(),ot=it;!function(){if(!ot.isInjectedToGlobal){ot.injectToGlobal(),window._vidalytics||(window._vidalytics={}),window._vidalytics.global||(window._vidalytics.global={}),window._vidalytics.global.wasInitialized=!0;var e=window._vidalytics.global.config;new ot(e).init()}}()}()}();